<%% if @name %>
Greetings, <%%= @name %>!
  <%-% else -%>
Greetings!
<%-% end -%>